package cn.cqie.attendance.teacher.service;

import cn.cqie.attendance.common.util.Page;
import cn.cqie.attendance.common.util.PageBean;
import cn.cqie.attendance.teacher.pojo.TeacherHistoryTask;
import cn.cqie.attendance.teacher.pojo.TeacherScore;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;


/**
 * @author wqh
 * @date 2021/6/22 14:37
 */
@Service
public interface TeacherScoreService {

    /**
     * 查看老师下的个人评分
     * @param
     * @return Page<TeacherScore>
     */
    PageBean<TeacherScore> queryCoursePersonByTeacherId(Integer courseId, Integer courseGroupId, Integer pageNum, Integer pageSize);

    /**
     * 查看老师下的小组评分
     * @param
     * @return Page<TeacherScore>
     */
    PageBean<TeacherScore> queryCourseGroupByTeacherId(Integer courseId, Integer groupId, Integer pageNum, Integer pageSize);
    /**
     * 查看老师下的小组评分详情
     * @param groupId
     * @return Page<TeacherScore>
     */
    Page<TeacherScore> queryCourseGroupDetailByGroupId(Integer groupId);
    /**
     * 查看评分个人详情信息
     * @param studentId,courseId
     * @return TeacherScore
     */
    Page<TeacherScore> queryPersonTaskByStudentId(Integer courseId,Integer studentId);

    /**
     * 老师给个人进行综合打分
     * @param overAllScore,comment,courseId,stuId
     * @return
     */
    Page updateStudentCourseByStudentId(float overAllScore, String comment, Integer courseId, Integer studentId,Integer responseTeacher);

    /**
     * 查询学生作业历史信息
     * @param studentId,courseId,pageNum,pageSize
     * @return
     */
    PageBean<TeacherHistoryTask> queryHistoryTaskByStudentId(Integer studentId,Integer courseId,Integer pageNum,Integer pageSize);

    /**
     * 查询小组作业历史信息
     * @param groupId,courseId,pageNum,pageSize
     * @return
     */
    PageBean<TeacherHistoryTask> queryHistoryTaskByGroupId(Integer groupId,Integer courseId,Integer pageNum,Integer pageSize);

    /**
     * 老师给小组作业进行打分和评论
     * @param overAllScore,comment,groupId
     * @return
     */
    Page updateStudentCourseByGroupId(float overAllScore,String comment,Integer groupId,Integer responseTeacher);
}
